<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<?php if (is_home()&&($paged<2)):?><meta name="description" content="<?php bloginfo('description');?>" /><?php endif;?>
<title><?php wp_title('&nbsp;|&nbsp;',true,'right')?><?php bloginfo('name'); ?></title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name');?> RSS 2.0" href="<?php bloginfo('rss2_url');?>" />
<?php wp_head();?>
<style type="text/css">.page-nav-pre{width:<?php echo $GLOBALS['option']['navi_left'];?>px;background-position:0 0;}.page-nav-after{width:<?php echo $GLOBALS['option']['navi_right'];?>px;background-position:-<?php echo ((int)$GLOBALS['option']['navi_left']+2*(int)$GLOBALS['option']['navi_middle']);?>px 0;}.page-numbers{width:<?php echo $GLOBALS['option']['navi_middle'];?>px;background-position:-<?php echo (int)$GLOBALS['option']['navi_left']+(int)$GLOBALS['option']['navi_middle'];?>px 0}.page_navi .current{width:<?php echo $GLOBALS['option']['navi_middle'];?>px;background-position:-<?php echo (int)$GLOBALS['option']['navi_left'];?>px 0}</style>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'></script>
</head>

<body>
<div id="navigation">
<?php wp_nav_menu(array('menu' => 'navigation', 'container' => 'ul')); ?>
<ol id="mood"><li><?php wp_register(""); ?></li><li><?php wp_loginout(); ?></li></ol>
</div>
<div id="cnt">
<div id="header">
<?php if(is_singular()):?>
<div id="logo"><a href="<?php bloginfo('url');?>" title="<?php bloginfo('name')?>"><img src="<?php bloginfo('stylesheet_directory')?>/images/logo.png" alt="<?php bloginfo('name');?>" width="145" height="49" /></a></div>
<?php else:?>
<h1 id="logo"><a href="<?php bloginfo('url');?>" title="<?php bloginfo('name')?>"><img src="<?php bloginfo('stylesheet_directory')?>/images/logo.png" alt="<?php bloginfo('name');?>" width="145" height="49" /></a></h1>
<?php endif;?>
<div class="search">
<form method="get" action="<?php bloginfo('url'); ?>/">
<table><tr>
<td class="table_sch"><input id="top_sch" type="text" title="<?php echo $GLOBALS['option']['sch_btn_name']?>" value="<?php the_search_query(); ?>" maxlength="200" name="s" class="lst" autocomplete="off" spellcheck="false" /></td>
<td class="tab_sub"><input type="submit" value="<?php echo $GLOBALS['option']["sch_btn_name"]?>" class="lsb"/></td>
</tr></table>
</form>
<div id="results"><?php show_query_num();?></div>
</div>
<div id="sch_suggest"><ul><?php $value = explode(' ',$GLOBALS['option']["seach_keywords"]); foreach($value as $word):?><li class="sch_li"><?php echo $word;?></li><?php endforeach;?></ul></div>
</div>